package com.jincheng.service.impl;

import com.jincheng.module.User;
import com.jincheng.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public User add(User user) {
        user.setUid(Math.random() + "");
        return user;
    }

    @Override
    public String delete(String uid) {
        return "删除成功，uid: " + uid;
    }

    @Override
    public User queryById(String uid) {
        return new User(uid, "张三", "131123456", "xx省xx市xx区");
    }

    @Override
    public User update(User user) {
        return user;
    }
}
